package com.punch.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.punch.common.dto.order.OrderDetailDTO;
import com.punch.order.model.CommonOrderDetail;

import java.util.List;


/**
 * <p>
 * 订单详情 服务类
 * </p>
 *
 * @author wjj
 * @since 2020-12-09
 */
public interface CommonOrderDetailService extends IService<CommonOrderDetail> {

    /**
     * 保存订单详情
     *
     * @param productList 产品列表
     * @param userId      用户uid
     * @param orderSN     订单流水号
     * @param orderId     订单id
     */
    void saveDetail(List<OrderDetailDTO> productList, Long userId, String orderSN, Long orderId);
}
